package com.atguigu.gulimall.product.config;

import org.redisson.Redisson;
import org.redisson.api.RedissonClient;
import org.redisson.config.Config;

import java.io.IOException;

public class TempRedisSonConfig {

    public static RedissonClient getRedisSon(){
        Config config=null;
        try {
            config=new Config();
            config.useSingleServer()
                    .setAddress("redis://192.168.56.10:6379");
        }catch (Exception e){
            e.printStackTrace();
        }
        return Redisson.create(config);
    }
}
